const url = window.g_ctx.getServiceByName('HOME_SVR');

// 查询政策法规列表
export function menuList(params) {
  return new Promise(resolve => {
    $.post(`${url}/policy/listBriefPolicy`, params, res => {
      resolve(res);
    });
  });
}

// 通过类型统计数量
export function menuNav(params) {
  return new Promise(resolve => {
    $.get(`${url}/policy/countType`, params, res => {
      resolve(res);
    });
  });
}

// 政策法规详情
export function queryInfoDetali(params) {
  return new Promise(resolve => {
    $.post(`${url}/policy/getPolicyDetail`, params, res => {
      resolve(res);
      console.log(res);
    });
  });
}
